<?php 
require_once('header_redirection.php');
require_once('Class/rating.Class.php');

if (isset($_POST))
{
	$rate = new rating();
	
	$idRating = $rate->createNewRating($_POST);
	header('Location: new_rating.php?id='. $idRating);
	exit;
}

?>